package mz.co.frameworks.loader;

import java.io.File;
import java.io.InputStream;

import mz.co.framework.error.SystemException;

/**
 * Interface used to create a unique template for any kind of source which has
 * to be imported.
 * 
 * @author Tiago da Fonseca Frazao
 * 
 */
public interface ILoader {

	/**
	 * Method used to load the source.
	 * 
	 * @param is Input Stream
	 * @return Collection of DadaSet which represents the datas loaded.
	 * @throws SystemException Unexpected Exception during read process.
	 */
	public Workbook loadWorkbook(InputStream is) throws SystemException;

	public Workbook loadWorkbook(File file) throws SystemException;

	public Workbook loadWorkbook(String fileName) throws SystemException;

}
